<?php
class Category extends AppModel {
	public $name = "Category";
	
	public function getCategoryOptionArray($type) {
		if (empty ( $type )) {
			return array ('product' => $this->getCategoryOptionArray ( 'product' ), 'news' => $this->getCategoryOptionArray ( 'news' ) );
		}else{
			$cates = $this->find("all",array('conditions' => array('type'=>$type)));
		}
	}
}